const envObj = require('../config/index.js')
let url = envObj.baseUrl.comHost

module.exports = {
  // login: {
  //   addToHeader: true,
  //   url: url + '/auth/login'
  // },
  test: {
    addToHeader: true,
    url: url + '/test'
  },
  getMerchantInfo: {
    addToHeader: true,
    url: url + '/merchantInfo/selectMerchantInfo'
  },
  //保存入驻商户信息
  saveMerchantInfo: {
    addToHeader: true,
    url: url + '/merchantInfo/saveMerchantInfo'
  },
  selectBusinessInfo: {
    addToHeader: true,
    url: url + '/merchantInfo/selectBusinessInfo'
  },
  //获取地区信息
  selectAreaInfo: {
    addToHeader: true,
    url: url + '/merchantInfo/selectAreaInfo'
  },
  //发送短信信息
  sendSmsMsg: {
    addToHeader: true,
    url: url + '/merchantInfo/sendSmsMsg'
  },
  //验证短信信息
  checkSmsMsg: {
    addToHeader: true,
    url: url + '/merchantInfo/checkSmsMsg'
  },
  //上传oss获取签名
  policy: {
    addToHeader: true,
    url: url + '/api/oss/policy'
  },
  //orc识别图片
  selectOCRDistinguish: {
    addToHeader: true,
    url: url + '/merchantInfo/selectOCRDistinguish'
  },
  //通过银卡编码获取支行信息等
  selectBank: {
    addToHeader: true,
    url: url + '/merchantInfo/selectBank'
  },
  //商户微信登录
  login: {
    addToHeader: false,
    url: url + '/auth/shwx/login'
  },
  reg: {
    addToHeader: false,
    url: url + '/auth/reg'
  },
};